﻿using System;
using System.Data;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Ccteg.Common
{
    /// <summary>
    ///任务下发job
    /// </summary>
    
    public class sfm_job
    {
        /// <summary>
        ///添加时间
        /// </summary>
        public DateTime? TimeStamp { get; set; }=System.DateTime.Now;

        /// <summary>
        ///json数据id
        /// </summary>
        public int? DataId { get; set; }

        /// <summary>
        ///数据类型
        /// </summary>
        public string DataType { get; set; }

        /// <summary>
        ///下发异常信息
        /// </summary>
        public string ExMesagge { get; set; }

        /// <summary>
        ///主键，自增
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        /// <summary>
        ///传输内容
        /// </summary>
        public string JsonData { get; set; }

        /// <summary>
        ///操作类型；update、add、delete
        /// </summary>
        public string OperateType { get; set; }

        /// <summary>
        ///下发时间
        /// </summary>
        public DateTime? Sendtime { get; set; }

        /// <summary>
        ///状态，默认状态0，0：未下发；1：已下发 2异常
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        ///表名
        /// </summary>
        public string TableName { get; set; }

        /// <summary>
        ///业务编号
        /// </summary>
        public string Topic { get; set; }

    }
}